<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%

String name=request.getParameter("name");

String password=request.getParameter("password");

application.setAttribute("name",name);
application.setAttribute("password",password);

response.setHeader("refresh","10;URL=index.jsp");
Enumeration <String> enums=application.getAttributeNames();

while(enums.hasMoreElements()){
	String paramName=enums.nextElement()+"<br>";
	String valueName=application.getInitParameter(paramName)+"<br>";
	out.println(paramName);
	out.println(valueName);
}


%>

<%=new String(application.getAttribute("name").toString().getBytes("ISO-8859-1"),"utf-8")+"<br>" %>
<%=new String(application.getAttribute("password").toString().getBytes("ISO-8859-1"),"utf-8")+"<br>" %>
<%=enums %>


</body>
</html>